package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 章节概况dto类
 * Created by chenxin on 2014/12/16.
 */
public class ChapterOverviewDto {
    @NotNull
    @Min(value = 1, message = "章节ID不合法")
    private Long nodeId; //节点Id
    @NotNull
    @Range(min = 1, max = 8, message = "概况类型不对")
    private Integer type; //概况类型
    private String content; //概况内容
    //private String downloadUrl;//下载url
    //private String showUrl;//显示url

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

//    public String getDownloadUrl(){
//        return downloadUrl;
//    }
//
//    public void setDownloadUrl(String downloadUrl){
//        this.downloadUrl = downloadUrl;
//    }
//
//    public String getShowUrl(){
//        return showUrl;
//    }
//
//    public void setShowUrl(String showUrl){
//        this.showUrl = showUrl;
//    }
}
